package io.github.kouleen.manager.domain;

import java.io.Serializable;

/**
 * @author zhangqing
 * @since 2025/1/25 14:16
 */
public class ResponseVO<T> implements Serializable {
    private String sign;
    private String code;
    private String message;
    private T data;
    private String traceId;

    public ResponseVO() {
    }

    public String getSign() {
        return this.sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return this.data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getTraceId() {
        return this.traceId;
    }

    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    public boolean isSuccess() {
        return "200".equals(this.getCode());
    }
}